package com.tbit.main.constant;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 17:07 2022/7/14
 */
@Data
@ToString
@Component
public class FtpConfig {

    /**
     * 服务器地址
     */
    public static String ftpUrl;
    /**
     * 端口
     */
    public static Integer port;
    /**
     * 登录用户名
     */
    public static String username;
    /**
     * 密码
     */
    public static String password;

    @Value("${ftp-Url}")
    public void setFtpUrl(String ftpUrlS) {
        ftpUrl = ftpUrlS;
    }

    @Value("${ftp-port}")
    public void setPort(Integer portS) {
        port = portS;
    }

    @Value("${ftp-username}")
    public void setUsername(String usernameS) {
        username = usernameS;
    }

    @Value("${ftp-password}")
    public void setPassword(String passwordS) {
        password = passwordS;
    }
}
